class CreateBoards < ActiveRecord::Migration
  def self.up
    create_table "boards", :force => true do |t|
      t.column :title,                     :string
      t.column :description,               :string
      t.column :created_at,                :datetime
      t.column :updated_at,                :datetime
      t.column :section_id,                :integer
    end
    
    create_table  :boards_moderators, 
                  :id => false,
                  :force => true do |t|
      t.column :board_id, :integer
      t.column :moderator_id, :integer
    end
    
    
  end

  def self.down
    drop_table "boards"
    drop_table :boards_moderators
  end
end